package com.editso.haier.service;

import com.editso.haier.dao.CommodityDao;
import com.editso.haier.dao.SecondaryDao;
import com.editso.haier.dao.TagDao;
import com.editso.haier.dao.TopicDao;
import com.editso.haier.entity.Tag;
import com.editso.haier.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RecommendedService {

    private TopicDao topicDao;
    private CommodityDao commodityDao;
    private SecondaryDao secondaryDao;
    private TagDao tagDao;

    @Autowired
    public void setTagDao(TagDao tagDao) {
        this.tagDao = tagDao;
    }

    @Autowired
    public void setTopicDao(TopicDao topicDao) {
        this.topicDao = topicDao;
    }

    @Autowired
    public void setSecondaryDao(SecondaryDao secondaryDao) {
        this.secondaryDao = secondaryDao;
    }

    /**
     * @see com.editso.haier.controller.user.Recommended#get(String, String, Integer, Integer)
     */
    public Result getRecommended(String type, String secondary, Integer size, Integer groupSize){
        Set<Tag> tags = tagDao.findTagsByName("", 10);
        return null;
    }
}
